﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassTrain1Feb
{
    class TaskManager 
    {
        private List<IExecutable> exList;

        public TaskManager(List<IExecutable> list)
        {
            exList = list;
        }
        
        public void Run()
        {
            foreach (IExecutable item in exList)
            {
                item.Execute();
            }
        }
    }
}
